package com.roam.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserConcreteUsebyUpdate {
    private int userID;
    private String username;
    private String txUrl;
    private String password;
    private String email;
    private String sex;
    private String age;
    private String signature;

    private List<String> footprint;
    private List<Visits> visits;
    public static UserConcreteUsebyUpdate constructByNoId(int id,UserConcreteInfo userConcreteInfo){
        return new UserConcreteUsebyUpdate(
                id, userConcreteInfo.getUsername(), userConcreteInfo.getTxUrl(), userConcreteInfo.getPassword(), userConcreteInfo.getEmail(),
                userConcreteInfo.getSex(), userConcreteInfo.getAge(),userConcreteInfo.getSignature(),userConcreteInfo.getFootprint(),userConcreteInfo.getVisits()
        );
    }
}
